<?php

namespace app\common\model;

class BaseModel extends \think\Model
{

    public function getKeyTextAttr()
    {
        return $this->column('name', 'id');
    }
}